package com.liuyang.dao.impl;

import com.liuyang.dao.UserDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//     <bean id="userDao" class="com.liuyang.dao.impl.UserDaoImpl"></bean>
//      使用注解，替代bean
//@Component("userDao")
//Repository替代
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    public void save() {
        System.out.println("UserDaoImpl-> -> -> -> ->");
    }
}
